package artid.com.arttogo.bean;

import org.json.JSONObject;

import java.io.Serializable;

/**
 * 
*    
* 项目名称：ArtworkArt   
* 类名称：SpecialInfoParser   
* 类描述：专场详情实体类+解析   
* 创建人：耿卫斌   
* 创建时间：2017-3-11 下午1:52:42   
*
 */
public class SpecialInfoParser extends AppItem implements Serializable {
	private static final long serialVersionUID = 1L;
	private String id;//专场id
	private String title;//专场名称
	private String imgurl;//专场logo
	private String preview_address;//预展地址
	private String lotrecord_num;//拍品备案数量
	private String lot_num;//拍品数量
	private String auction_address;//拍卖地点
	private String catalogurl;//图录下载地址
	private String seller_name;//机构名称
	private String logo;//机构LOGO
	private int status;//专场状态		当是往期的时候状态为0 1.待预展 2.预展中 3.拍卖中
	private String start_time;//预展/拍卖开始时间
	private String end_time;//预展/拍卖结束时间
	private String address;//机构地址
	private int is_remind;//0 已经开拍，不能点击1.添加，2. 查看提醒
	private String shareurl;//分享地址
	private String memo;//分享描述
	private String jid;//机构id
	private int height;//图片高度
	@Override
	public void parse(JSONObject obj) {
		// TODO Auto-generated method stub
		if (null == obj) {
			return;
		}
		id = obj.optString("id");
		title = obj.optString("title");
		imgurl = obj.optString("imgurl");
		preview_address = obj.optString("preview_address");
		lotrecord_num = obj.optString("lotrecord_num");
		lot_num = obj.optString("lot_num");
		auction_address = obj.optString("auction_address");
		catalogurl = obj.optString("catalogurl");
		seller_name = obj.optString("seller_name");
		logo = obj.optString("logo");
		status = obj.optInt("status");
		start_time = obj.optString("start_time");
		end_time = obj.optString("end_time");
		address = obj.optString("address");
		is_remind = obj.optInt("is_remind");
		shareurl = obj.optString("shareurl");
		memo = obj.optString("memo");
		jid = obj.optString("jid");
		height = obj.optInt("height");
	}
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getImgurl() {
		return imgurl;
	}
	public void setImgurl(String imgurl) {
		this.imgurl = imgurl;
	}
	public String getPreview_address() {
		return preview_address;
	}
	public void setPreview_address(String preview_address) {
		this.preview_address = preview_address;
	}
	public String getLotrecord_num() {
		return lotrecord_num;
	}
	public void setLotrecord_num(String lotrecord_num) {
		this.lotrecord_num = lotrecord_num;
	}
	public String getLot_num() {
		return lot_num;
	}
	public void setLot_num(String lot_num) {
		this.lot_num = lot_num;
	}
	public String getAuction_address() {
		return auction_address;
	}
	public void setAuction_address(String auction_address) {
		this.auction_address = auction_address;
	}
	public String getCatalogurl() {
		return catalogurl;
	}
	public void setCatalogurl(String catalogurl) {
		this.catalogurl = catalogurl;
	}
	public String getSeller_name() {
		return seller_name;
	}
	public void setSeller_name(String seller_name) {
		this.seller_name = seller_name;
	}
	public String getLogo() {
		return logo;
	}
	public void setLogo(String logo) {
		this.logo = logo;
	}
	public int getStatus() {
		return status;
	}
	public void setStatus(int status) {
		this.status = status;
	}
	public String getStart_time() {
		return start_time;
	}
	public void setStart_time(String start_time) {
		this.start_time = start_time;
	}
	public String getEnd_time() {
		return end_time;
	}
	public void setEnd_time(String end_time) {
		this.end_time = end_time;
	}
	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	public int getIs_remind() {
		return is_remind;
	}
	public void setIs_remind(int is_remind) {
		this.is_remind = is_remind;
	}
	public String getShareurl() {
		return shareurl;
	}
	public void setShareurl(String shareurl) {
		this.shareurl = shareurl;
	}
	public String getMemo() {
		return memo;
	}
	public void setMemo(String memo) {
		this.memo = memo;
	}
	public String getJid() {
		return jid;
	}
	public void setJid(String jid) {
		this.jid = jid;
	}
	public int getHeight() {
		return height;
	}
	public void setHeight(int height) {
		this.height = height;
	}
	public SpecialInfoParser() {
		super();
	}
	public SpecialInfoParser(String id, String title, String imgurl, String preview_address, String lotrecord_num, String lot_num, String auction_address, String catalogurl, String seller_name, String logo, int status, String start_time, String end_time, String address, int is_remind, String shareurl, String memo, String jid, int height) {
		this.id = id;
		this.title = title;
		this.imgurl = imgurl;
		this.preview_address = preview_address;
		this.lotrecord_num = lotrecord_num;
		this.lot_num = lot_num;
		this.auction_address = auction_address;
		this.catalogurl = catalogurl;
		this.seller_name = seller_name;
		this.logo = logo;
		this.status = status;
		this.start_time = start_time;
		this.end_time = end_time;
		this.address = address;
		this.is_remind = is_remind;
		this.shareurl = shareurl;
		this.memo = memo;
		this.jid = jid;
		this.height = height;
	}
	@Override
	public String toString() {
		return "SpecialInfoParser{" +
				"id='" + id + '\'' +
				", title='" + title + '\'' +
				", imgurl='" + imgurl + '\'' +
				", preview_address='" + preview_address + '\'' +
				", lotrecord_num='" + lotrecord_num + '\'' +
				", lot_num='" + lot_num + '\'' +
				", auction_address='" + auction_address + '\'' +
				", catalogurl='" + catalogurl + '\'' +
				", seller_name='" + seller_name + '\'' +
				", logo='" + logo + '\'' +
				", status=" + status +
				", start_time='" + start_time + '\'' +
				", end_time='" + end_time + '\'' +
				", address='" + address + '\'' +
				", is_remind=" + is_remind +
				", shareurl='" + shareurl + '\'' +
				", memo='" + memo + '\'' +
				", jid='" + jid + '\'' +
				", height=" + height +
				'}';
	}
}
